package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerDao {
    List<Customer> selectCustomerListByName(@Param("customerName") String customerName);

    /**
     * 修改客户信息
     * @param customer
     */
    void UpdateCustomerById(@Param("customer") Customer customer);

    /**
     * 添加客户信息
     * @param customer
     */
    void saveCustomer(@Param("customer")Customer customer);
    /**
     * 客户删除（支持批量删除）
     */
    void deleteCustomer(@Param("id")String id);
}
